import axios from "../../axios.js";

export default {

  //获取接单
  GETALLORDER(data) {
    return axios({
      url: '/singleChannelZlc/listForChannel',
      method: 'post',
      data
    })
  },
  //获取渠道专员
  GETUSER(data) {
    return axios({
      url: '/singleChannelZlc/selectCmoByDepId',
      method: 'get',
      params: data
    })
  },

  //获取渠道
  GETCHANNEL(data) {
    return axios({
      url: '/singleChannelZlc/selectChannelMaintenance',
      method: 'get',
      params: data
    })
  },

  //获取渠道专员回显详情  
  GETUSERDETAILS(data) {
    return axios({
      url: '/singleChannelZlc/detailsQdfp',
      method: 'post',
      data
    })
  },

  //修改渠道
  EDTICHAN(data) {
    return axios({
      url: '/singleChannelZlc/updateQdfp',
      method: 'post',
      data
    })
  },
  //获取部门 /singleChannelZlc/selectDepHt
  selectDepHt(data) {
    return axios({
      url: '/singleChannelZlc/selectDepHt',
      method: 'post',
      data
    })
  },

  //获取渠道专员
  selectQdzyByDepId(data) {
    return axios({
      url: '/singleChannelZlc/selectQdzyByDepId',
      method: 'get',
      params: data
    })
  },
  //退信息部操作
  updateSignStatus(data) {
    return axios({
      url: '/singleChannelZlc/updateSignStatus',
      method: 'post',
      data
    })
  },
  //  后台助理贷款类型选择接口 防止之前已选类型被删后渲染不上：代文科
  getMaintenanceType_Api(data) {
    return axios({
      url: `/singleChannelZlc/selectMaintenanceType2?roleId=${data}`,
      method: 'post',
    })
  },
  // 保存分配渠道：代文科
  updateDisSign_Api(data) {
    return axios({
      url: '/singleChannelZlc/updateDisSign',
      method: 'post',
      data
    })
  },
  // 24小时退信息部：代文科
  signReturn_Api(data) {
    return axios({
      url: '/singleChannelZlc/signReturn',
      method: 'post',
      data
    })
  },
  // 查询已分配的渠道：代文科
  getOldChannel_Api(data) {
    return axios({
      url: '/singleChannelZlc/selectSingleById',
      method: 'get',
      params:data
    })
  },
  // 特殊签单列表
  getSpecialList_Api(data) {
    return axios({
      url: '/singleChannelZlc/listForSpecial',
      method: 'post',
      data
    })
  },
  // 特殊单分配渠道
  specUpdate_Api(data) {
    return axios({
      url: '/singleChannelZlc/updateSpecialDisSign',
      method: 'post',
      data
    })
  },
  // 获取渠道专员对应一级渠道类型
  getChannel1_Api(data){
    return axios({
      url: '/channelMaintenance/channelType',
      method: 'get',
      params:data
    })
  },
  // 获取退信息部理由
  getReturnReson_Api(data){
    return axios({
      url: '/singleChannelZlc/closeReason',
      method: 'get',
      params:data
    })
  }
};
